package com.his.invdrug.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class InvDrugHeaderItemVo {
    /**
     *
     * 主键
     *
     * @mbggenerated
     */
    private String id;

    /**
     *
     * 库单编号
     *
     * @mbggenerated
     */
    private String inoutid;

    /**
     *
     * 行号
     *
     * @mbggenerated
     */
    private Long rowno;

    /**
     *
     * 出入库方向
     *
     * @mbggenerated
     */
    private Short directtion;

    /**
     *
     * 出入库事务 codetype=000401
     *
     * @mbggenerated
     */
    private String invpropid;

    /**
     *
     * 库存地点编码
     *
     * @mbggenerated
     */
    private String orgidPl;

    /**
     *
     * 来源/去向
     *
     * @mbggenerated
     */
    private String ioOrgidorentid;

    /**
     *
     * 票据号
     *
     * @mbggenerated
     */
    private String billNumber;

    /**
     *
     * 项目ID
     *
     * @mbggenerated
     */
    private String itemid;

    /**
     *
     * 项目名称
     *
     * @mbggenerated
     */
    private String itemname;

    /**
     *
     * 项目规格
     *
     * @mbggenerated
     */
    private String itemspec;

    /**
     *
     * 生产商ID
     *
     * @mbggenerated
     */
    private String manufacturerEntid;

    /**
     *
     * 生产商名称
     *
     * @mbggenerated
     */
    private String manufacturerEntname;

    /**
     *
     * 批准文号
     *
     * @mbggenerated
     */
    private String itemdes;

    /**
     *
     * 批次号
     *
     * @mbggenerated
     */
    private String benchcode;

    /**
     *
     * 实际数量  单位数量*系数*出入库方向（0除外）
     *
     * @mbggenerated
     */
    private BigDecimal quantity;

    /**
     *
     * 单位ID
     *
     * @mbggenerated
     */
    private String uitid;

    /**
     *
     * 单位名称
     *
     * @mbggenerated
     */
    private String uitname;

    /**
     *
     * 系数
     *
     * @mbggenerated
     */
    private BigDecimal factor;

    /**
     *
     * 单位数量
     *
     * @mbggenerated
     */
    private BigDecimal uitquantity;

    /**
     *
     * 进货价
     *
     * @mbggenerated
     */
    private BigDecimal costprice;

    /**
     *
     * 进货总额
     *
     * @mbggenerated
     */
    private BigDecimal costamount;

    /**
     *
     * 批发价
     *
     * @mbggenerated
     */
    private BigDecimal wholesalesprice;

    /**
     *
     * 批发总额
     *
     * @mbggenerated
     */
    private BigDecimal wholesalesamount;

    /**
     *
     * 零售价
     *
     * @mbggenerated
     */
    private BigDecimal salesprice;

    /**
     *
     * 零售金额
     *
     * @mbggenerated
     */
    private BigDecimal salesamount;

    /**
     *
     * 实际购入价
     *
     * @mbggenerated
     */
    private BigDecimal purchaseprice;

    /**
     *
     * 实际购总金额
     *
     * @mbggenerated
     */
    private BigDecimal purchaseamount;

    /**
     *
     * 有效期
     *
     * @mbggenerated
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date validityDate;

    /**
     *
     * 备注
     *
     * @mbggenerated
     */
    private String note;
}
